package Controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import View.DetailsContactView;

/**
 * Action listener for the JDialog Details
 * @author adrien
 *
 */


public class DetailsContactListener implements ActionListener {

	public static final String OK = "OK";
	private DetailsContactView view;
	
	public DetailsContactListener (DetailsContactView view){
		this.view=view;
	}
	
	
	@Override
	public void actionPerformed(ActionEvent e) {
		
		
		if(e.getActionCommand().equals(OK)) {
			view.dispose();
		}
				
		
	}
}
